package com.meizhuang.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@TableName("tb_order")
public class Order{

    @TableId("order_id")
    private Long orderId;

    private Long uid;

    private Integer payType;

    private String orderDescription;

    private Long orderTotal;

    private String currency;

    private String openId;

    private String prepayId;

    private String notifyUrl;

    private Integer status;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date ctime;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date mtime;

}
